package cn.ipenta.blockchain.entity;

import java.io.Serializable;
import java.util.List;

public class BlockInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	private String uuid;
	private Long version;
	private String prevBlock;
	private String merkleRoot;
	private Long timestamp;
	private String minerSignature;
	private Long txCount;
	private List<TransactionInfo> transactions;
	private Long height;

	public BlockInfo() {
	}

	public BlockInfo(String uuid, Long version, String prevBlock, String merkleRoot, Long timestamp, String ignature,
			Long txCount, List<TransactionInfo> transactions) {
		this.uuid = uuid;
		this.version = version;
		this.prevBlock = prevBlock;
		this.merkleRoot = merkleRoot;
		this.timestamp = timestamp;
		this.minerSignature = ignature;
		this.txCount = txCount;
		this.transactions = transactions;
	}

	public String getUuid() {
		return this.uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public Long getVersion() {
		return this.version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public String getPrevBlock() {
		return this.prevBlock;
	}

	public void setPrevBlock(String prevBlock) {
		this.prevBlock = prevBlock;
	}

	public String getMerkleRoot() {
		return this.merkleRoot;
	}

	public void setMerkleRoot(String merkleRoot) {
		this.merkleRoot = merkleRoot;
	}

	public Long getTimestamp() {
		return this.timestamp;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}

	public Long getTxCount() {
		return this.txCount;
	}

	public void setTxCount(Long txCount) {
		this.txCount = txCount;
	}

	public List<TransactionInfo> getTransactions() {
		return this.transactions;
	}

	public void setTransactions(List<TransactionInfo> transactions) {
		this.transactions = transactions;
	}

	public String getMinerSignature() {
		return this.minerSignature;
	}

	public void setMinerSignature(String minerSignature) {
		this.minerSignature = minerSignature;
	}

	public Long getHeight() {
		return this.height;
	}

	public void setHeight(Long height) {
		this.height = height;
	}
}
